package org.mspring.mlog.entity;

import org.mspring.nbee.orm.annotation.Col;
import org.mspring.nbee.orm.annotation.Mappable;
import org.mspring.nbee.orm.entity.BaseEntity;

import java.util.Date;

/**
 * @author Gao Youbo
 * @since 2015-02-19 17:00:21
 */
@Mappable
public class Comment extends BaseEntity {

    @Col(nullable = false, length = 19)
    private long articleId;
    @Col(nullable = false, length = 10)
    private int status;
    @Col(length = 19)
    private Long replyId;
    @Col(nullable = false, length = 65535)
    private String content;
    @Col(nullable = false, length = 32)
    private String authorName;
    @Col(length = 1024)
    private String authorAvatar;
    @Col(length = 1024)
    private String authorEmail;
    @Col(length = 512)
    private String authorUrl;
    @Col(length = 32)
    private String ip;
    @Col(length = 2048)
    private String agent;
    @Col(length = 1024)
    private String renferer;
    @Col(nullable = false, length = 19)
    private Date createTime;
    @Col(nullable = false, length = 19)
    private long duoshuoCommentId;

    public long getArticleId() {
        return this.articleId;
    }

    public void setArticleId(long articleId) {
        this.articleId = articleId;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Long getReplyId() {
        return this.replyId;
    }

    public void setReplyId(Long replyId) {
        this.replyId = replyId;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthorName() {
        return this.authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorAvatar() {
        return this.authorAvatar;
    }

    public void setAuthorAvatar(String authorAvatar) {
        this.authorAvatar = authorAvatar;
    }

    public String getAuthorEmail() {
        return this.authorEmail;
    }

    public void setAuthorEmail(String authorEmail) {
        this.authorEmail = authorEmail;
    }

    public String getAuthorUrl() {
        return this.authorUrl;
    }

    public void setAuthorUrl(String authorUrl) {
        this.authorUrl = authorUrl;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAgent() {
        return this.agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public String getRenferer() {
        return this.renferer;
    }

    public void setRenferer(String renferer) {
        this.renferer = renferer;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public long getDuoshuoCommentId() {
        return this.duoshuoCommentId;
    }

    public void setDuoshuoCommentId(long duoshuoCommentId) {
        this.duoshuoCommentId = duoshuoCommentId;
    }

}
